package com.ruoyi.consumption.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType; //添加
import com.baomidou.mybatisplus.annotation.TableId; //添加
import com.baomidou.mybatisplus.annotation.TableName; //添加
import lombok.Data; //添加
import java.io.Serializable; //添加

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 能耗对象 consumption
 *
 * @author hcc
 * @date 2024-11-25
 */
@Data //添加
@TableName("consumption") //添加
public class Consumption extends BaseEntity implements Serializable //修改
        {
private static final long serialVersionUID=1L;

    /** 能耗id */
 //添加
        @TableId(value = "id", type = IdType.AUTO)
    private String consumptionId;

    /** 开关1 */
            @Excel(name = "开关1")
    private String ah1;

    /** 开关1电流 */
            @Excel(name = "开关1电流")
    private String ah1Analog1;

    /** 开关1电压 */
            @Excel(name = "开关1电压")
    private String ah1Analog4;

    /** 开关32 */
            @Excel(name = "开关32")
    private String ah32;

    /** 开关32电流 */
            @Excel(name = "开关32电流")
    private String ah32Analog1;

    /** 开关32电压 */
            @Excel(name = "开关32电压")
    private String ah32Analog4;

    /** 生成时间 */
            @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
            @Excel(name = "生成时间" , width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date dataTime;

        }

